package com.ics.web.controller.travelstar.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ics.framework.util.PageUtil;
import com.ics.web.controller.travelstar.domain.TbAboutUs;
import com.ics.web.controller.travelstar.dto.AboutUsDTO;
import com.ics.web.controller.travelstar.mapper.TbAboutUsMapper;
import com.ics.web.controller.travelstar.service.ITbAboutUsService;
import org.springframework.stereotype.Service;

/**
 * 关于我们Service业务层处理
 *
 * @author ics
 * @date 2024-10-22
 */
@Service
public class TbAboutUsServiceImpl extends ServiceImpl<TbAboutUsMapper, TbAboutUs>
        implements ITbAboutUsService {
    @Override
    public IPage<TbAboutUs> listPage(AboutUsDTO aboutUsDTO) {
        LambdaQueryWrapper<TbAboutUs> wrapper = Wrappers.lambdaQuery();
        wrapper.orderByAsc(TbAboutUs::getUsOrder);
        return this.baseMapper.selectPage(PageUtil.getPage(aboutUsDTO), wrapper);
    }
}
